{template 'header'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{if empty($_W['styles']['fontcolor'])}#465F78{else}{$_W['styles']['fontcolor']}{/if};
	padding:0;
	margin:0;
	background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#CDD2D8{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{margin:1.7% 0 0 1.7%;}
	.box .box-item{float:left;text-align:center;display:block;text-decoration:none;color:#465f78;outline:none; margin:0 1.4% 1.4% 0;width:31.93%;height:100px; background:#e5eaed; box-shadow:0 0 0.3em rgba(0,0,0,0.13); border-radius:0.1em; font-weight:bold;}
	.box .box-item i{display:block; width:100%; text-align:center; height:70px; line-height:70px; font-size:35px; overflow:hidden; margin-bottom:5px;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']}; font-size:14px; display:block; width:90%; height:20px; line-height:20px; margin:0 5%; text-align:center; overflow:hidden;}
	.box .box-item.item1{width:48.6%;height:120px;}
	.box .box-item.item1 i{float:left; display:block; width:40%; text-align:center; margin:20px 5px;}
	.box .box-item.item1 span{color:{$_W['styles']['fontnavcolor']}; display:block; width:50%; text-align:center; height:120px; line-height:120px;}
	.box .box-item.item2,.box .box-item.item3{width:48.6%; height:58px; margin-bottom:1.65%;}
	.box .box-item.item2 i,.box .box-item.item3 i{float:left; display:block; width:40%; text-align:center; height:58px; line-height:58px;}
	.box .box-item.item2 span,.box .box-item.item3 span{color:{$_W['styles']['fontnavcolor']}; display:block; width:50%; text-align:left; height:58px; line-height:58px;}
	.box .box-item.pic i{width:65%; height:100px; line-height:100px; left:0;}
	.box .box-item.pic span{color:{$_W['styles']['fontnavcolor']}; width:31%; right:2%; top:30%;}
	.notices{width:100%; height:45px; line-height:45px; padding:0 4%; margin-bottom:2.2%; color:#465f78; border-bottom:#b0b8bd solid 1px; background:#e5eaed; background:-webkit-linear-gradient(#f8f8fa 0%,#f8f8fa 3%,#f2f3f6 4%,#dbe2e5 100%); overflow:hidden;}
	.notices ul{margin:0px; padding:0px;}
	.notices a{ color:#465f78;}
	.notices>span{color:{$_W['styles']['fontnavcolor']};display:block; width:30%; height:45px; line-height:45px; float:left;}
	.notices ul{ float:right; width:70%;}
	.notices ul li{ height:45px; overflow:hidden;}
	.img-box{margin:4.3% 0 1.5% 3.39%; overflow:hidden;}
	.img-box>a{display:block; float:left; text-decoration:none; text-align:center; width:30.5%; margin:0 1.72% 3.3% 0; padding-bottom:5px; background-color:#ffffff; border:#e0e0e0 solid 1px; border-radius:6px; box-shadow:1px 1px 1px rgba(0,0,0,0.06);color:#465f78;}
	.img-box>a i{display:block; width:100%; height:83px; line-height:83px; font-size:70px; margin-bottom:5px; vertical-align:middle; -webkit-border-top-left-radius:6px; -webkit-border-top-right-radius:6px;}
	.img-box>a .icon{ width:100%; height:83px; margin-bottom:5px; vertical-align:middle; -webkit-border-top-left-radius:6px; -webkit-border-top-right-radius:6px;}
	.img-box>a span{color:{$_W['styles']['fontnavcolor']}; display:block; width:100%; padding:0 5%; height:20px; font-weight:bold; overflow:hidden;}
</style>
<div class="box clearfix">
	{php $num = 0;}
	{data func="site_navs" section="1" item="nav"}
	<a href="{$nav['url']}" class="box-item {if $num == 0}item1{else if $num == 1}item2{else if $num == 2}item3{else}icon{/if}">
		{if !empty($nav['icon'])}
		<i style="background:url({$_W['attachurl']}{$nav['icon']}) no-repeat;background-size:cover;{$nav['css']['icon']['style']} "></i>
		{else}
		<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
	</a>
	{php $num++;}
	{/data}
</div>
<div class="notices">
	<span>通知公告：</span>
	<ul>
		{data func="site_navs" section="2" item="row"}
		<li>
			<a href="{$row['url']}">
				{$row['name']}
			</a>
		</li>
		{/data}
	</ul>
</div>
<div class="img-box clearfix">
	{data func="site_navs" section="3" item="row"}
	{$row['html']}
	{/data}
</div>
<script>
	var scrollAnimate = $( '.notices' );
	var	horn = scrollAnimate.find( 'ul' );
	var	speed = 300;
	var	timer = 2000;
	scrollUp = function(){
		horn.animate({
				marginTop:-scrollAnimate.height()},
				speed,
				function(){
					horn.find('li:first').remove().appendTo(horn);
					horn.css({marginTop:0});
				}
		);
	};
	!scrollAnimate.length > 0 || setInterval( scrollUp, timer );
</script>
{template 'footer'}